.farris-form {
    flex-shrink: 0;
}

//input-group添加focus类名
.input-group.f-state-focus {
    outline: none;

    border-color: $f-input-focus-border-color;
    box-shadow: $f-input-box-shadow, $f-input-focus-box-shadow;
}

// input 布局:默认纵向时，标签页
.farris-input-wrap {
    display: block;
    position: relative;

    .form-control {
        width: 100%;
        display: block;

        &.form-control-invalid {
            border-color: $f-semantic-danger-01;

            &:focus {
                box-shadow: 0 0 2px 1px rgba($f-semantic-danger-01, 0.3);
            }
        }
    }

    .k-switch {
        width: $f-k-switch-size;
        height: auto;
        display: inline-flex;
    }

    .input-group .form-control {
        width: 1%;
    }

    .farris-feedback {
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0.1875rem 0.5rem;
        z-index: 99;
        display: none;
        border-radius: $farris-border-radius;
        transition: all 0.2s linear;
        cursor: pointer;

        .f-feedback-message {
            font-size: $farris-feedback-font-size;
            line-height: $farris-feedback-line-height;
        }

        .f-feedback-icon {
            font-size: 14px;
        }

        &.f-state-invalid,
        &.f-state-valid {
            display: block;
        }

        &.f-state-invalid {
            background: $farris-feedback-invalid-bg;
            color: $farris-feedback-invalid-text;
        }

        &.f-state-valid {
            background: $farris-feedback-success-bg;
            color: $farris-feedback-success-text;
        }
    }
}

.farris-form-group {
    flex-wrap: nowrap !important;

    .col-form-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    .farris-input-wrap {
        .custom-control-label {
            display: inline;
        }

        .custom-checkbox {
            margin-bottom: 0;
            margin-top: 0.125rem;
        }

        .custom-radio {
            margin-bottom: 0;
            margin-top: 0.125rem;
        }
    }
}



.form-inline,
.farris-form-controls-inline .farris-group-wrap {
    .farris-input-wrap {
        flex-shrink: 1;
        flex-grow: 1;
        flex-basis: auto;
        width: unset;
        overflow: unset;
    }

    .col-form-label {
        display: flex;
        align-items: center;
        justify-content: flex-end !important;
        flex-direction: row !important;
    }
}


.farris-form-inline,
.farris-form-controls-inline .farris-group-wrap {
    display: block;

    .col-form-label {
        width: $farris-inline-label-default-width;
        flex-shrink: 0;
        margin-right: $farris-inline-label-margin-x;

        @include f-text-overflow;
        justify-content: flex-end !important;
        flex-direction: row !important;
        align-self: start;

        >* {
            min-width: 0;

            @include f-text-overflow;
        }

        // 多行文本前面的标签
        &.col-form-label-multi {
            word-break: break-all;
            white-space: initial;

            .farris-label-info {
                align-self: flex-start;
                line-height: $farris-line-height-base;
            }

            .farris-label-text {
                white-space: initial;
                text-align: right;
                max-height: 2 * $farris-line-height-base * $farris-font-size-base;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }
        }
    }

    .form-group {
        margin-bottom: $f-el-form-title-input-top-bottom-gutter;
        flex-wrap: nowrap !important;
    }
}

.form-inline,
.farris-form-controls-inline {
    .farris-group-multi-label {
        .farris-group-wrap {
            margin-bottom: 0;

            .col-form-label {
                padding-top: 0;
                padding-bottom: 0;
                word-break: break-all;
                white-space: initial;

                .farris-label-info {
                    align-self: flex-start;
                    line-height: $farris-line-height-base;
                }

                .farris-label-text {
                    white-space: pre-wrap;
                    text-align: right;
                    max-height: 2 * $farris-line-height-base * $farris-font-size-base;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                }
            }

            .farris-input-wrap {
                align-self: flex-start;
            }
        }
    }
}

.farris-form-inline.f-form-label-sm,
.farris-form-controls-inline.f-form-label-sm .farris-group-wrap {
    .col-form-label {
        width: $farris-inline-label-default-width - 2 * 0.875rem;
    }
}

.farris-form-inline.f-form-label-lg,
.farris-form-controls-inline.f-form-label-lg .farris-group-wrap {
    .col-form-label {
        width: $farris-inline-label-default-width + 2 * 0.875rem;
    }
}

.farris-form-inline.f-form-label-xl,
.farris-form-controls-inline.f-form-label-xl .farris-group-wrap {
    .col-form-label {
        width: $farris-inline-label-default-width + 4 * 0.875rem;
    }
}

.farris-form-inline.f-form-label-el,
.farris-form-controls-inline.f-form-label-el .farris-group-wrap {
    .col-form-label {
        width: $farris-inline-label-default-width + 8 * 0.875rem;
    }
}

.farris-label-info {
    padding: $farris-label-info-padding;
    flex-shrink: 0;
}

/*空占位input*/
.f-empty-input-placeholder {
    padding-top: $farris-line-height-base * $farris-font-size-base;
    margin-top: $f-input-label-bottom;
    height: $f-input-height;
    margin-bottom: $farris-form-group-margin-bottom-default;
    box-sizing: content-box;
}

.farris-form-inline,
.farris-form-controls-inline {
    .f-empty-input-placeholder {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: $f-el-form-title-input-top-bottom-gutter;
    }
}

// 通过表单控制样式
.farris-form-controls-inline {
    .form-group {
        display: flex;
        flex: 0 0 auto;
        flex-flow: row wrap;
        align-items: center;
        margin-bottom: 0;
    }

    .farris-group-ver {

        .form-group,
        .col-form-label {
            display: block;
        }
    }

}

.form-label-plaintext {
    .farris-label-text {
        color: $farris-form-label-plaintext-text;
    }
}

/** 
  checkbox radio
  **/
.f-checkradio-no-label {

    .farris-form-inline,
    .farris-form-controls-inline {
        .col-form-label {
            width: 1px;
            overflow: hidden;

            height: calc(#{$farris-line-height-base * $farris-font-size-base + $f-input-padding-y *2 } + #{$f-input-border-width}* 2);
        }


        .custom-radio,
        .custom-checkbox {
            @include f-text-overflow;
        }
    }
}

.f-form-lable-auto {
    .col-form-label {
        width: auto !important;
    }
}

.farris-form-controls-inline,
.farris-form-inline {
    .f-checkradio-no-label {
        .col-form-label {
            width: 1px;
            overflow: hidden;

            height: calc(#{$farris-line-height-base} * #{$farris-line-height-base} + #{$f-input-padding-y}* 2 + #{$f-input-border-width}* 2);
        }
    }
}

.input-group {

    border: $f-input-border-width solid $f-input-border-color;
    border-radius: $f-input-border-radius;

    .form-control {
        border: 0;
        height: $f-input-height-inner;
        box-shadow: none;
    }


    .input-group-prepend {
        border-radius: $f-input-border-radius 0 0 $f-input-border-radius;
    }

    .input-group-append {
        border-radius: 0 $f-input-border-radius $f-input-border-radius 0;
    }

    // 解决数字控件圆角问题
    .btn-group-number {
        overflow: hidden;

        .btn-number-flag {
            border-radius: 0;
        }
    }

    .input-group-prepend,
    .input-group-append {
        background: $farris-input-group-append-bg;

        &>.input-group-text,
        &>.btn,
        &>.dropdown {
            border: 0;
        }

        &>.input-group-text {
            background: transparent;
        }

        &>.input-group-clear {
            padding: 0 8px;
            border-radius: $farris-border-radius !important;
            background: $f-input-group-close-icon-bg;

            .modal_close {
                color: $f-input-group-close-icon-color;
                font-size: $f-input-group-close-icon-size;

                &::before {
                    content: "\e11d";
                }
            }

            &:hover {
                .modal_close {
                    color: $f-text-08;
                }
            }
        }
    }

    &:not(.farris-input-group-readonly):not(.farris-input-group-disable):not(.f-state-readonly):not(.f-state-disabled):hover {
        border-color: $farris-input-hovered-border-color;
    }
}

.custom-control-label {
    margin-left: 0;
}

// checkbox radio 横向布局
.farris-checkradio-hor {
    flex-wrap: wrap;
    display: inline-flex;
}

/*增加输入控件是下划线的*/
.f-input-underline {
    .form-control {
        background: transparent;
        border-width: 0 0 1px 0;
        border-color: $f-input-underline-border-color;
        border-style: solid;

        &:focus {
            background: transparent;
            border-color: $farris-input-focus-border-color;
            color: $farris-input-focused-color;
            box-shadow: none;
        }

        &:disabled,
        &:disabled:hover {
            background: transparent;
            border-color: $farris-input-disabled-border-color;
            border-style: dashed;
            color: $farris-input-disabled-color;
        }

        &:disabled::placeholder,
        &[readonly]::placeholder {
            color: $farris-input-placeholder-color;
        }

        &[readonly],
        &[readonly]:hover {
            background: transparent;
            border-color: $farris-input-readonly-border-color;
            border-style: dashed;
            color: $farris-input-readonly-color;
        }

    }

    .f-cmp-inputgroup.actived {
        .input-group {
            box-shadow: none;
        }
    }

    .input-group {
        border-width: 0 0 1px 0;
        border-color: $f-input-underline-border-color;
        border-style: solid;

        .form-control {
            border: 0;
        }

        &.f-state-disabled {
            border-color: $farris-input-disabled-border-color;
            border-style: dashed;
        }

        &.f-state-readonly {
            border-color: $farris-input-readonly-border-color;
            border-style: dashed;
        }

        &.f-state-focus {
            box-shadow: none;
        }
    }

    .k-widget {
        border-width: 0;
    }

    .k-autocomplete,
    .k-multiselect-wrap,
    .k-dropdown .k-dropdown-wrap,
    .k-combobox .k-dropdown-wrap,
    .k-datepicker .k-picker-wrap,
    .k-timepicker .k-picker-wrap,
    .k-datetimepicker .k-picker-wrap,
    .k-dateinput .k-dateinput-wrap,
    .k-numerictextbox .k-numeric-wrap {
        border-width: 0 0 1px 0;
        border-color: $f-input-underline-border-color;
        border-style: solid;
        background: transparent;

        &.k-state-disabled {
            border-color: $farris-input-disabled-border-color;
            border-style: dashed;
        }

        &.k-state-focused {
            box-shadow: none;
        }
    }

    .k-state-disabled {

        &.k-multiselect .k-multiselect-wrap,
        &.k-dateinput .k-dateinput-wrap {
            border-color: $farris-input-disabled-border-color;
            border-style: dashed;
        }
    }

    .f-state-readonly,
    [ng-reflect-readonly="true"] {

        &.k-autocomplete,
        &.k-multiselect-wrap,
        &.k-dropdown .k-dropdown-wrap,
        &.k-combobox .k-dropdown-wrap,
        &.k-datepicker .k-picker-wrap,
        &.k-timepicker .k-picker-wrap,
        &.k-datetimepicker .k-picker-wrap,
        &.k-dateinput .k-dateinput-wrap,
        &.k-numerictextbox .k-numeric-wrap {
            border-color: $farris-input-readonly-border-color;
            border-style: dashed;
        }
    }

    /*日期时间控件*/
    .k-datepicker .k-picker-wrap,
    .k-timepicker .k-picker-wrap,
    .k-datetimepicker .k-picker-wrap {
        .k-dateinput .k-dateinput-wrap {
            border-width: 0;
        }
    }
}

/*输入控件的查看状态*/
.f-state-form-view {
    .farris-group-wrap {
        .farris-label-text {
            color: $farris-input-viewstate-label-color;
        }
    }

    .form-control {
        &:focus {
            background: $farris-input-viewstate-input-bg;
            border-color: $farris-input-viewstate-input-border-color;
            color: $farris-input-viewstate-input-color;
            box-shadow: none;
        }

        &:disabled,
        &:disabled:hover {
            background: $farris-input-viewstate-input-bg;
            border-color: $farris-input-viewstate-input-border-color;
            color: $farris-input-viewstate-input-color;
        }

        &[readonly],
        &[readonly]:hover {
            background: $farris-input-viewstate-input-bg;
            border-color: $farris-input-viewstate-input-border-color;
            color: $farris-input-viewstate-input-color;
        }
    }

    .input-group {
        border-color: $farris-input-viewstate-input-border-color;

        &.f-state-disabled {
            border-color: $farris-input-viewstate-input-border-color;
        }

        &.f-state-readonly {
            border-color: $farris-input-viewstate-input-border-color;
        }
    }

    .k-autocomplete,
    .k-autocomplete,
    .k-multiselect-wrap,
    .k-dropdown .k-dropdown-wrap,
    .k-combobox .k-dropdown-wrap,
    .k-dateinput .k-dateinput-wrap,
    .k-numerictextbox .k-numeric-wrap {
        &.k-state-disabled {
            background: $farris-input-viewstate-input-bg;
            border-color: $farris-input-viewstate-input-border-color;
            color: $farris-input-viewstate-input-color;
        }
    }

    .k-state-disabled {
        &.k-multiselect {
            .k-multiselect-wrap {
                border-color: $farris-input-viewstate-input-border-color;
                background: $farris-input-viewstate-input-bg;

                .k-button {
                    color: $farris-input-viewstate-input-color;
                    border-color: $farris-btn-disabled-border-color;
                    background: $farris-btn-disabled-bg;
                }
            }
        }

        &.k-dateinput {
            .k-dateinput-wrap {
                background: $farris-input-viewstate-input-bg;
                border-color: $farris-input-viewstate-input-border-color;
                color: $farris-input-viewstate-input-color;
            }
        }

        &.k-datepicker,
        &.k-timepicker,
        &.k-datetimepicker {
            .k-picker-wrap {
                background: $farris-input-viewstate-input-bg;
                border-color: $farris-input-viewstate-input-border-color;
                color: $farris-input-viewstate-input-color;

                .k-dateinput-wrap {
                    color: $farris-input-viewstate-input-color;
                }
            }
        }
    }

    .f-state-readonly,
    [ng-reflect-readonly="true"] {

        &.k-autocomplete,
        &.k-multiselect-wrap,
        &.k-dropdown .k-dropdown-wrap,
        &.k-combobox .k-dropdown-wrap,
        &.k-datepicker .k-picker-wrap,
        &.k-timepicker .k-picker-wrap,
        &.k-datetimepicker .k-picker-wrap,
        &.k-dateinput .k-dateinput-wrap,
        &.k-numerictextbox .k-numeric-wrap {
            background: $farris-input-viewstate-input-bg;
            border-color: $farris-input-viewstate-input-border-color;
            color: $farris-input-viewstate-input-color;
        }

        &.k-datepicker .k-picker-wrap .k-dateinput-wrap,
        &.k-timepicker .k-picker-wrap .k-dateinput-wrap {
            background: $farris-input-viewstate-input-bg;
            color: $farris-input-viewstate-input-color;
        }

        .k-multiselect-wrap {
            background: $farris-input-viewstate-input-bg;
            border-color: $farris-input-viewstate-input-border-color;

            .k-button {
                color: $farris-input-viewstate-input-color;
                border-color: $farris-btn-disabled-border-color;
                background: $farris-btn-disabled-bg;
            }
        }
    }
}

// 配合col-auto，形成固定的宽度输入控件
.f-form-controls-fixed-with {
    .farris-input-wrap {
        width: 3.75rem;
    }
}

// 单独的checkbox、radio 不带间距
.f-checkradio-single {
    margin: 0;
    padding: 0;
    width: 1rem;
    height: 1rem;
    min-height: 1rem;
    display: inline-flex;

    .custom-control-label {
        &::after {
            top: 0;
            left: 0;
        }

        &::before {
            top: 0;
            left: 0;
        }
    }
}

.f-form-table {
    width: 100%;
    table-layout: fixed;

    td {
        padding-left: $f-grid-gutter-width * 0.5;
        padding-right: $f-grid-gutter-width * 0.5;
    }
}

// 输入控件最大宽度

@media (min-width: map-get($map: $f-grid-breakpoints, $key: lg)) {
    .farris-form {
        .farris-group-wrap {
            max-width: $farris-form-group-max-width;
        }
    }

    .farris-form {
        .farris-group-auto {
            .farris-group-wrap {
                max-width: none;
            }
        }
    }

    .farris-form-auto {
        .farris-group-wrap {
            max-width: none;
        }
    }
}

.farris-input-wrap {
    .form-control {

        &.ng-invalid.ng-touched,
        &.ng-invalid.ng-dirty {
            border-color: $f-danger;

            &:focus {
                box-shadow: 0 0 2px 1px rgba($f-danger, 0.3);
            }
        }
    }


    .f-cmp-inputgroup {

        &.ng-invalid.ng-touched,
        &.ng-invalid.ng-dirty {
            .input-group {
                border-color: $f-danger;

                &:hover {
                    border-color: $f-danger;
                }
            }
        }
    }
}

/* 增加 禁用、只读的灰度样式*/
.f-form-state-default {
    @include f-input-gray-or-default("default");

    .f-form-pretend-lines {
        @include f-input-gray-or-default();
    }
}

.f-input-text-light,
.f-form-state-edit,
.f-form-state-create {
    @include f-input-gray-or-default();

    .f-form-state-default {
        @include f-input-gray-or-default("default");

        .f-form-pretend-lines {
            @include f-input-gray-or-default();
        }
    }
}

.farris-html-editor {
    .ql-container.ql-disabled {
        border-width: 1px !important;
        border-color: $farris-input-readonly-border-color !important;
        border-style: solid !important;

        .ql-editor {
            min-height: auto;

            padding: $f-input-padding-y $f-input-padding-x;
        }
    }

    &-border {
        .ql-container.ql-disabled {
            border-width: 0 0 1px 0 !important;
        }
    }
}

td.farris-group-wrap--input .farris-editor .farris-editor-placeholder {
    color: #2D2F33;
}

.farris-editor {

    &.farris-editor-disabled,
    &.farris-editor-readonly {
        .mce-edit-area {
            border-color: $farris-input-readonly-border-color;
        }

        .mce-tinymce {
            border: none !important;

            .mce-edit-area {
                display: none !important;
            }
        }
    }

    .mce-statusbar {
        border: 0;

        .mce-container-body .mce-path {
            display: none !important;
        }
    }

    //富文本只读不支持复制修改
    .farris-editor-placeholder {
        min-height: 100px;
        padding: .125rem .5rem;
        overflow-y: auto;
        background-color: #fff;
        border-width: 0 0 1px 0;
        border-style: solid;
        border-color: #D8DCE6;
        border-radius: $farris-border-radius;
        white-space: normal;
        word-break: break-all;

        &.farris-editor-placeholder-border {
            border-width: 1px;
            padding-inline-start: 20px !important;
        }

        & ol {
            padding-inline-start: 20px;
            list-style: none;
        }

        .ql-editor.ql-blank::before {
            color: #b5bccb;
            font-style: normal;
            font-size: 13px;
        }
    }
}

td .farris-editor .farris-editor-placeholder ol {
    list-style: auto;
}

td .farris-input-wrap .f-organization-selector {
    height: 100%;
    display: flex;

    .org-select-help .s-input-group .multi-more {
        display: flex;
        align-items: center;
    }
}

.farris-editor-placeholder ul,
.farris-editor-placeholder ol,
.farris-editor-placeholder li {
    list-style: inherit;
    margin: auto;
    padding: inherit;
}

.f-form-state-default {

    .f-input-text-light,
    .f-form-state-edit,
    .f-form-state-create {
        @include f-input-gray-or-default();
    }
}

// 多行文本框,富文本滚动条
textarea.form-control,
.f-form-control-textarea,
.farris-html-editor .ql-editor {
    @include f-scrollbarDefine();
}

textarea::-webkit-input-placeholder {
    color: #95a0b5 !important;
}

textarea.form-control.k-textarea {
    color: #000000;
}

/*一行显示*/
.farris-textarea-pretend-input {

    textarea.form-control,
    .f-form-control-textarea {
        min-height: auto;
        height: $f-input-height;
        overflow: hidden;

        &:hover {
            overflow: auto;
        }
    }
}

// 富文本编辑框——填充
.f-form-htmleditor-fill {

    .farris-group-wrap,
    .farris-form-group {
        height: 100%;
    }

    .farris-input-wrap {
        display: flex;
        flex-direction: column;
        align-self: flex-start;
        height: 100%;

        .farris-html-editor {
            flex-shrink: 1;
            flex-grow: 1;
            flex-basis: 0;
            display: flex;
            flex-direction: column;

            .ql-toolbar.ql-snow+.ql-container.ql-snow {
                flex-shrink: 1;
                flex-grow: 1;
                flex-basis: 0;
                overflow: hidden;
            }
        }

        .farris-editor,
        .farris-editor .mce-tinymce,
        .farris-editor .mce-tinymce>.mce-container-body,
        .farris-editor .mce-tinymce .mce-edit-area {
            display: flex;
            flex-direction: column;
            flex-shrink: 1;
            flex-grow: 1;
            flex-basis: 0;
        }

        .farris-editor .mce-edit-area iframe {
            flex-shrink: 1;
            flex-grow: 1;
            flex-basis: 0;
        }

        // 在禁用状态下问题修复
        .farris-editor {
            &.farris-editor-readonly {
                .mce-tinymce {
                    display: none;
                }

                .farris-editor-placeholder {
                    flex: 1 1 0;
                }
            }
        }
    }
}

// 不在form结构中使用htmleditor的编辑器
.f-htmleditor-fill {
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    flex-direction: column;

    .ql-toolbar.ql-snow+.ql-container.ql-snow {
        flex-shrink: 1;
        flex-grow: 1;
        flex-basis: 0;
        overflow: hidden;
    }
}

// numberbox 数字控件
.f-cmp-number-spinner {
    .sub-btn-group {
        border-right: 1px solid rgb(217, 217, 217);
    }

    .number-arrow-chevron {
        font-size: 12px;
        min-width: 12px;
    }

    .btn-number-flag-up {
        .number-arrow-chevron {
            transform: rotate(180deg);
        }
    }
}

.f-form-pretend-lines {

    .f-form-control-text,
    .f-form-control-textarea {
        border-width: 1px !important;
        color: $f-input-gray-text;
        background: $f-input-gray-bg;
        border-color: $f-border-color;
    }
}

// 单据的可编辑状态下
.f-form-state-create,
.f-form-state-edit {

    //恢复成四根线
    .farris-card-content-bg,
    .f-rregion-mtable-form-next-tab,
    .farris-card-section,
    .f-section-form .f-form-layout,
    .f-sidebar-content .farris-form {
        @include f-input-singleline-or-default("default");
    }

    //单据不可编辑
    .f-form-state-default {

        // 不可编辑状态下一根线
        .farris-card-content-bg,
        .f-rregion-mtable-form-next-tab,
        .farris-card-section,
        .f-section-form .farris-form,
        .f-sidebar-content .farris-form {
            @include f-input-singleline-or-default();
        }

        // 四根线
        .farris-card-content-bg .f-form-pretend-lines,
        .f-rregion-mtable-form-next-tab .f-form-pretend-lines,
        .farris-card-section .f-form-pretend-lines,
        .f-section-form .f-form-pretend-lines,
        .f-sidebar-content .f-form-pretend-lines {
            @include f-input-singleline-or-default('default');
        }
    }
}

/*单据不可编辑状态*/
.f-form-state-default {

    // 增加默认状态的下划线效果
    .farris-card-content-bg,
    .f-rregion-mtable-form-next-tab,
    .farris-card-section,
    .f-section-form .farris-form,
    .f-sidebar-content .farris-form {
        // 不可编辑状态下一根线
        @include f-input-singleline-or-default();
    }

    // 四根线
    .farris-card-content-bg .f-form-pretend-lines,
    .f-rregion-mtable-form-next-tab .f-form-pretend-lines,
    .farris-card-section .f-form-pretend-lines,
    .f-section-form .f-form-pretend-lines,
    .f-sidebar-content .f-form-pretend-lines {
        @include f-input-singleline-or-default('default');
    }

    // 单据的可编辑状态下
    .f-form-state-create,
    .f-form-state-edit {

        //四根线
        .farris-card-content-bg,
        .f-rregion-mtable-form-next-tab,
        .farris-card-section,
        .f-section-form .farris-form,
        .f-sidebar-content .farris-form {
            @include f-input-singleline-or-default("default");
        }
    }
}

// 帮助前提示
.f-cmp-inputgroup {
    .input-group-before-tips {
        background: #f7f8fb;
        border: none;
        border-right: 1px solid #d8dce6;
        position: relative;
        border-radius: 0;
        padding: 0 8px;
        display: flex;
        align-items: center;

        .f-icon {
            font-size: 14px;
        }

        .tips-arrow {
            width: 4px;
            height: 4px;
            margin: 0;
            position: absolute;
            top: 50%;
            margin-top: -4px;
            right: 0;

            &::before,
            &::after {
                content: "";
                border-color: transparent;
                border-style: solid;
                border-width: 4px 4px 4px 0;
                position: absolute;
            }

            &::before {
                left: 0;
                border-right-color: #d8dce6;
            }

            &::after {
                left: 1px;
                border-right-color: #fff;
            }
        }
    }
}

/* Html Editor*/
.farris-editor {
    .mce-panel {
        box-shadow: none;
    }

    .mce-top-part::before {
        box-shadow: none;
    }

    border-color: $f-border-color;
}

// 增加标签提示
.form-group--has-tips {
    position: relative;

    .farris-input-wrap {
        margin-right: 18px;
    }

    .farris-label-tips {
        position: absolute;
        right: 0;
        bottom: calc(#{$f-input-height-inner *0.5 } + #{$f-input-height-border});
        margin-bottom: -7px;
    }
}

.farris-label-tips,
.farris-label-tips--highlight {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid $f-theme-05;
    background: $f-aid-04;
    color: $f-theme-03;
    border-radius: 7px;
    line-height: 1;
    text-align: center;

    .f-icon {
        font-size: 12px;
        vertical-align: top;
        transform: scale(0.8);
    }
}

.farris-label-tips--highlight {
    border: none;
    color: #fff;
    background-image: linear-gradient(225deg, #FFB362 0%, #FF8538 100%);

    .f-icon {
        vertical-align: baseline;
    }
}

.color-picker-wrapper .color-picker-trigger {
    height: $f-input-height !important;
}

// 多语言的下拉面板
.language-textbox-panel {
    margin: $farris-dropdown-spacer 0 0;
    border-radius: $farris-dropdown-border-radius;
    box-shadow: $farris-dropdown-box-shadow !important;
}

// 输入控件
.number-range .input-container .sub-input-group .sub-input {
    &::placeholder {
        color: $farris-input-placeholder-color;
    }

    &:disabled::placeholder,
    &[readonly]::placeholder {
        color: $farris-input-placeholder-color;
    }
}

// input-append指令，区分追加文本和追加按钮
.f-verify-nums .nums-icon,
.f-verify-nums .nums-count {
    color: #F5222D;
}

.f-verify-list .list-icon {
    color: #F5222D;
}

.f-verify-list .list-warning {
    color: #FAAD14;
}

.f-verify-detail .f-verify-detail-content .f-verify-form-main .f-verify-form-content .f-verify-forms-title .btn-group .btn.btn-secondary {
    &:hover {
        color: #fff;
        background: $f-theme-03;
    }

    &:active {
        color: $f-theme-04;
        border-color: $f-theme-04;
    }

    &.active {
        color: #fff;
        background: $f-theme-03;
        border-color: $f-theme-03;
    }
}